﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace MShop.Core.Domain
{

    [MetadataType(typeof(Discount_Validation))]
    public partial class Discount
    {
        
    }

    internal partial class Discount_Validation
    {

        [DisplayName("角色")]       
        public Guid RoleId { get; set; }

        
        [UIHint("img")]
        [DisplayName("图标")]
        public string Icon { get; set; }

        [Required(ErrorMessage = "要求积分不能为空")]
        [Range(1,100000000d,ErrorMessage = "积分的数值超出范围")]
        [DisplayName("要求积分")]
        public int Point { get; set; }

           [Required(ErrorMessage = "打折折扣不能为空")]
        [Range(0.001,1.000d, ErrorMessage = "请输入0.001到1的数值")]
        [DisplayName("打折折扣")]
        public decimal DiscountDot { get; set; }
    }
}